package com.CMS.client.ui.data;

import com.CMS.client.CMSConstants;
import com.CMS.client.ui.view.CreateItemMenuView;
import com.CMS.client.ui.view.CreateMenuView;
import com.CMS.client.ui.view.EditItemMenuView;
import com.CMS.client.ui.view.EditMenuView;
import com.CMS.client.ui.view.EditPageView;
import com.CMS.client.ui.view.NewPageView;
import com.CMS.client.ui.view.PageWritterView;
import com.google.gwt.core.client.GWT;


public class PageManagerPaneSectionData
{
 
	private static NavigationPaneRecord[] records;
	private static CMSConstants constants = GWT.create(CMSConstants.class);

	  public static NavigationPaneRecord[] getRecords() {
		if (records == null) {
		  records = getNewRecords();
		}
		return records;
	  }

	  public static NavigationPaneRecord[] getNewRecords() {
		return new NavigationPaneRecord[]{
		  new NavigationPaneRecord("newPage", constants.createPage(), new NewPageView.Factory(), null),
		  new NavigationPaneRecord("",constants.editPage(), new EditPageView.Factory(),null),
		  new NavigationPaneRecord("",constants.createMenu(), new CreateMenuView.Factory(),null),
		  new NavigationPaneRecord("",constants.editMenu(), new EditMenuView.Factory(),null),
		  new NavigationPaneRecord("",constants.createItemMenu(), new CreateItemMenuView.Factory(),null),
		  new NavigationPaneRecord("",constants.editItemMenu(), new EditItemMenuView.Factory(),null),
		  new NavigationPaneRecord("",constants.generatePage(), new PageWritterView.Factory(),null)		  
		};
	  }	

}
